package com.xtkj.superclub_information.client;

import com.xtkj.commons.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author lizheqi
 * @create 2020-01-09-11:20
 */
@FeignClient("superclub-photo")
public interface IPhotoClient {
    @RequestMapping(value = "/photo/getAlbumId/{personalAlbumId}",method = RequestMethod.GET)
    JsonResult getAlbumId(@PathVariable("personalAlbumId") String personalAlbumId);


    @RequestMapping(value = "/photo/addPhotoToAlBum",method = RequestMethod.POST)
    public JsonResult addPhotoToAlBum(@RequestBody Map<String, Object> albumAndPhotoInfo);
}
